import request from "@/utils/requestBase";

/**
 * @description 查询下拉社区数据
 */
export function communityGroup() {
  return request.get({
    url: "/community/selectAll",
  });
}

/**
 * @description 查询单个社区信息
 */
export function communityById(ids: any) {
  return request.get({
    url: `/community/selectOne/${ids}`,
  });
}

/**
 * @description 根据社区ID查询街路巷
 */
export function selectAlleyList(data: any) {
  return request.get({
    url: "/community/selectAlleyList",
    data,
  });
}

/**
 * @description 查询小区信息
 */
export function selectSubdistrictList(data: any) {
  return request.get({
    url: "/community/selectSubdistrictList",
    data,
  });
}

/**
 * @description 根据门楼牌号信息
 */
export function selectBuildingList(data: any) {
  return request.get({
    url: "/community/selectBuildingList",
    data,
  });
}